<?php
class CV_Unittest_Suite_Collecting extends CV_Unittest_Suite{
	private $tests;
	public function __construct( $tests, $title = false ){
		if( !file_exists($tests) ){
			throw new Exception( "tests not found: '$tests'" );
		}
		$this->tests = $tests;
		parent::__construct( $title );
	}
	function run( $reporter = null ){
		$this->collect( $this->tests );
		parent::run( $reporter );
	}
}